function show(){
	var p=$("<p></p>");
	var p1=$("<p></p>");
	var p2=$("<p></p>");
	p.text("用户id: "+sessionStorage.myUid);
	$("#myUid").append(p);
	p1.text("用户名： "+sessionStorage.myUsername);
	$("#myUsername").append(p1);
    p2.text("描述: "+sessionStorage.myDescription);
    $("#myDescription").append(p2);
}
function loadCategory(){
	$.ajax({
	    "contentType": "application/json; charset=utf-8",
	    "type": "POST",
	    "url": "allCategory",
	    "success": function (data,textStatus) {
	    	console.log(data);
	    	//$("#cate").empty()
	    	for(var i in data){
	    		var p=$("<button></button>");
	    		var cid=data[i].cid;
	    		var cname=data[i].cname;
	    		p.text(cid+" "+cname);
	    		$("#cate").append(p);
	    		(function(cid){
	    			p.click(function(){
	        			findAllQuestion(cid);
	        		});
	    		})(cid);    		
	    	}       
	    }
	});
	
	
	
}